// 静态路由配置
// 书写格式与动态路由格式一致，全部经由框架统一转换
// 比较动态路由在meta中多加入了role角色权限，为数组类型。一个菜单是否有权限显示，取决于它以及后代菜单是否有权限。
// routes 显示在左侧菜单中的路由(显示顺序在动态路由之前)
// 示例如下

const routes = [
	{
		name: "usercenter",
		path: "/usercenter",
		component: "userCenter/user/account",
		meta: {
			icon: "el-icon-data-board",
			title: "修改密码",
			hidden: true,
			// role: ["SA"]
			active: '/pages/pricelist',
			type: 'menu',
		}
	},
	{
		name: "home",
		path: "/home",
		meta: {
			icon: "el-icon-eleme-filled",
			title: "首页",
			// role: ["SA"]
		},
		children: [{
			name: "dashboard",
			path: "/dashboard",
			component: "home/index",
			meta: {
				icon: "el-icon-menu",
				title: "首页",
				// role: ["SA"]
			}
		},{
			name: "echarts",
			path: "/echarts",
			component: "home/echarts",
			meta: {
				icon: "el-icon-menu",
				title: "今日概况",
				// role: ["SA"]
			}
		}]
	}, {
		name: "工厂客户公司",
		path: '/company',
		meta: {
			icon: "el-icon-avatar",
			title: "客户",
		},
		children: [{
			name: "company",
			path: "/company/index",
			component: "company/index",
			meta: {
				icon: "el-icon-list",
				title: "客户管理",
			}

		}]
	},{
		name: "产品管理",
		path: '/goods',
		meta: {
			icon: "el-icon-grid",
			title: "产品管理",
		},
		children: [{
			name: "goods",
			path: "/goods/index",
			component: "goods/index",
			meta: {
				icon: "el-icon-list",
				title: "产品列表",
			}

		}]
	},{
		name: "stock",
		path: '/stock',
		meta: {
			icon: "el-icon-list",
			title: "出入库",
		},
		children: [{
			name: "stockorder",
			path: "/stockorder/index",
			component: "stockorder/index",
			meta: {
				icon: "el-icon-list",
				title: "出入库记录",
			}
		},{
			name: "stockout",
			path: "/stockorder/out",
			component: "stockorder/out",
			meta: {
				icon: "el-icon-van",
				title: "出库",
			}
		},{
			name: "stockin",
			path: "/stockorder/in",
			component: "stockorder/in",
			meta: {
				icon: "el-icon-box",
				title: "入库",
			}
		},{
			name: "stockprint",
			path: "/stockorder/print",
			component: "stockorder/print",
			meta: {
				icon: "el-icon-printer",
				title: "打印标签",
			}
		},{
			name: "stockprinttmp",
			path: "/stockorder/printtmp",
			component: "stockorder/printtmp",
			meta: {
				icon: "el-icon-tools",
				title: "库存标签模板",
			}
		},{
			name: "wxscan",
			path: "/stockorder/wx",
			meta: {
				icon: "el-icon-chat-dot-round",
				title: "微信扫码",
			},
			children: [{
				name: 'wxscanout',
				path: '/stockorder/wxscan/out',
				component: "stockorder/wxscan",
				meta: {
					icon: '',
					title: '微信扫码出库'
				}
			},{
				name: 'wxscanin',
				path: '/stockorder/wxscan/in',
				component: "stockorder/wxscanin",
				meta: {
					icon: '',
					title: '微信扫码入库'
				}
			}]
		}]
	},{
		name: "procedure",
		path: '/procedure',
		meta: {
			icon: "el-icon-home-filled",
			title: "工厂工序",
		},
		children: [{
			name: "procedure/list",
			path: "/procedure/index",
			component: "procedure/index",
			meta: {
				icon: "el-icon-list",
				title: "工序流程",
			}

		},{
			name: "print",
			path: "/procedure/print",
			component: "procedure/print",
			meta: {
				icon: "el-icon-Ticket",
				title: "打印工资单",
			}

		},{
			name: "printed",
			path: "/procedure/printed",
			component: "procedure/printed",
			meta: {
				icon: "el-icon-Management",
				title: "已打印",
			}

		},{
			name: "printtemplate",
			path: "/procedure/printtemplate",
			component: "procedure/printtemplate",
			meta: {
				icon: "el-icon-tools",
				title: "打印模板",
			}

		}]
	},{
		name: "task",
		path: "/task",
		meta: {
			icon: "el-icon-stopwatch",
			title: "车间流程"
		},
		children: [{
			name: "procedure",
			path: "/task/procedure",
			component: "task/index",
			meta: {
				icon: "el-icon-list",
				title: "所有流程",
			}
		},{
			name: "tasklist",
			path: "/task/procedure/list",
			component: "task/tasks",
			meta: {
				icon: "el-icon-list",
				title: "工序列表",
				hidden: true,
				// role: ["SA"]
				active: '/task/procedure',
				type: 'menu',
			}
		}]
	}
	,{
		name: "staff",
		path: '/staff',
		meta: {
			icon: "el-icon-user",
			title: "员工",
		},
		children: [{
			name: "staff",
			path: "/staff/index",
			component: "staff/index",
			meta: {
				icon: "el-icon-list",
				title: "员工列表",
			}

		}]
	},
	{
		name: "finance",
		path: '/finance',
		meta: {
			icon: "el-icon-management",
			title: "财务",
		},
		children: [{
			name: "financelist",
			path: "/finance/index",
			component: "finance/index",
			meta: {
				icon: "el-icon-checked",
				title: "财务列表",
			}

		},{
			name: "financeadd",
			path: "/finance/add",
			component: "finance/addfinance",
			meta: {
				icon: "el-icon-edit",
				title: "手工入账",
			}

		}]
	},
	{
		name: "refund",
		path: '/refund',
		meta: {
			icon: "el-icon-briefcase",
			title: "退货登记",
		},
		children: [{
			name: "refundlist",
			path: "/refund/index",
			component: "refund/index",
			meta: {
				icon: "el-icon-checked",
				title: "退货包裹",
			}

		},{
			name: "refundscan",
			path: "/refund/refundScan",
			component: "refund/refundScan",
			meta: {
				icon: "el-icon-checked",
				title: "退货扫描",
			}

		}]
	},
	{
		name: "wechat",
		path: '/wechat',
		meta: {
			icon: "el-icon-odometer",
			title: "微信机器人",
		},
		children: [{
			name: "wechatbot",
			path: "/wechatbot/index",
			component: "wechatbot/index",
			meta: {
				icon: "el-icon-checked",
				title: "微信机器人",
			}

		},]
	},{
		name: "test",
		path: '/test',
		meta: {
			icon: "el-icon-odometer",
			title: "测试",
		},
		children: [{
			name: "test",
			path: "/vab/print",
			component: "vab/print",
			meta: {
				icon: "el-icon-checked",
				title: "微信机器人",
			}

		},]
	},
]



export default routes;
